<div th:fragment="sidebar-fragment(path)">
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a th:href="@{/admin}" class="brand-link">
            <img th:src="@{/admin/dist/img/new-bee-logo-1.png}" alt="ssm-cluster Logo"
                 class="brand-image img-circle elevation-3"
                 style="opacity: .8">
            <span class="brand-text font-weight-light">NEWBEE-PRO商城</span>
        </a>
        <!-- Sidebar -->
        <div class="sidebar">
            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <!-- Add icons to the links using the .nav-icon class
                         with font-awesome or any other icon font library -->
                    <li class="nav-header">Dashboard</li>
                    <li class="nav-item">
                        <a th:href="@{/admin}" th:class="${path}=='index'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-dashboard"></i>
                            <p>
                                Dashboard
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/statistics}" th:class="${path}=='statistics'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-area-chart"></i>
                            <p>
                                统计信息
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/goods/add}" th:class="${path}=='goods-add-edit'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-plus"></i>
                            <p>
                                添加商品
                            </p>
                        </a>
                    </li>
                    <li class="nav-header">首页配置</li>
                    <li class="nav-item">
                        <a th:href="@{/admin/carousels}"
                           th:class="${path}=='newbee_mall_carousel'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-file-image-o"></i>
                            <p>
                                轮播图配置
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/indexConfigs?configType=3}"
                           th:class="${path}=='INDEX_GOODS_HOTS'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-hand-o-up"></i>
                            <p>
                                热销商品配置
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/indexConfigs?configType=4}"
                           th:class="${path}=='INDEX_GOODS_NEW'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-hand-o-up"></i>
                            <p>
                                新品上线配置
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/indexConfigs?configType=5}"
                           th:class="${path}=='INDEX_GOODS_RECOMMOND'?'nav-link active':'nav-link'">
                            <i class="nav-icon fa fa-hand-o-up"></i>
                            <p>
                                为你推荐配置
                            </p>
                        </a>
                    </li>
                    <li class="nav-header">管理模块</li>
                    <li class="nav-item">
                        <a th:href="@{/admin/categories?parentId=0&categoryLevel=1&backParentId=0}"
                           th:class="${path}=='newbee_mall_category'?'nav-link active':'nav-link'">
                            <i class="fa fa-list-alt nav-icon" aria-hidden="true"></i>
                            <p>
                                分类管理
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/goods}"
                           th:class="${path}=='newbee_mall_goods'?'nav-link active':'nav-link'">
                            <i class="fa fa-archive nav-icon" aria-hidden="true"></i>
                            <p>
                                商品管理
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/users}" th:class="${path}=='users'?'nav-link active':'nav-link'">
                            <i class="fa fa-users nav-icon" aria-hidden="true"></i>
                            <p>
                                会员管理
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/orders}" th:class="${path}=='orders'?'nav-link active':'nav-link'">
                            <i class="fa fa-money nav-icon" aria-hidden="true"></i>
                            <p>
                                订单管理
                            </p>
                        </a>
                    </li>
                    <li class="nav-header">营销管理</li>
                    <li class="nav-item">
                        <a th:href="@{/admin/coupon}"
                           th:class="${path}=='coupon'?'nav-link active':'nav-link'">
                            <i class="fa fa-money nav-icon"></i>
                            <p>优惠卷管理</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/seckill}"
                           th:class="${path}=='seckill'?'nav-link active':'nav-link'">
                            <i class="fa fa-buysellads nav-icon"></i>
                            <p>秒杀管理</p>
                        </a>
                    </li>
                    <li class="nav-header">系统管理</li>
                    <li class="nav-item">
                        <a th:href="@{/admin/profile}"
                           th:class="${path}=='profile'?'nav-link active':'nav-link'">
                            <i class="fa fa-user-secret nav-icon"></i>
                            <p>修改密码</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a th:href="@{/admin/logout}" class="nav-link">
                            <i class="fa fa-sign-out nav-icon"></i>
                            <p>安全退出</p>
                        </a>
                    </li>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>

</div>
